﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using EShop.Core.Model.Store;

namespace EShop.Services.Store
{
   public interface IDimensionValueService
    {
        /// <summary>
        /// 查询维度Value，单个
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
       DimensionValue GetDimensionValueById(string id);

        /// <summary>
        /// 添加维度Value
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
       bool AddDimensionValue(DimensionValue model);
        /// <summary>
        /// 修改维度Value
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
       bool UpdateDimensionValue(DimensionValue model);
        /// <summary>
        /// 删除维度Value
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
       bool DelDimensionValue(string id);

        /// <summary>
        /// 取得维度Value列表
        /// </summary>
        /// <returns></returns>
       IList<DimensionValue> GetAllDimensionValue();

       /// <summary>
       /// 根据DimensionId取得维度Value列表
       /// </summary>
       /// <returns></returns>
       IList<DimensionValue> GetDimensionValueByDimensionId(int dimensionId);
    }
}
